import request from '@/utils/request'

// 查询批改管理列表
export function listCorrect(query) {
  return request({
    url: '/business/correct/list',
    method: 'get',
    params: query
  })
}

// 查询所有批改管理列表
export function allCorrects(query) {
  return request({
    url: '/business/correct/all/corrects',
    method: 'get',
    params: query
  })
}

// 查询批改管理详细
export function getCorrect(id) {
  return request({
    url: '/business/correct/' + id,
    method: 'get'
  })
}

// 新增批改管理
export function addCorrect(data) {
  return request({
    url: '/business/correct',
    method: 'post',
    data: data
  })
}

// 修改批改管理
export function updateCorrect(data) {
  return request({
    url: '/business/correct',
    method: 'put',
    data: data
  })
}

// 删除批改管理
export function delCorrect(id) {
  return request({
    url: '/business/correct/' + id,
    method: 'delete'
  })
}
